<script setup>
import axios from 'axios';
import { ref ,onMounted} from 'vue';
const list = ref([]);
function getList(){
    axios.get('http://localhost:8400/goods/selectByPage').then(res=>{
        console.log(res);
        if(res.data.status==200){
            console.log("请求成功");
            list.value=res.data.data;
            console.log(list.value);
        }
    }).catch(err =>{
        console.log(err)
    })
}
onMounted(()=>{
    console.log("开始请求");
    getList();
})

</script>
<template>
  
</template>